home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-03
/
fglqbx10.zip
/
09-14.BAS
< prev
next >
Wrap
BASIC Source File
|
1991-06-20
|
751b
|
39 lines
REM $INCLUDE: 'fastgraf.bi'
DEFINT A-Z
DATA &h0000,&h00FF,&h00FF,&h00FF,&h02BB,&h0000,&h0222,&h0255
DATA &h00FF,&h00FF,&h00FF,&h0055,&h00AA,&h00AA,&h00FF,&h0277
NewMode = FGbestmode(320,200,1)
If NewMode < 0 OR NewMode = 12 THEN
PRINT "This program requires a 320 x 200 color graphics mode."
STOP
END IF
Status = SETMEM(-64000)
OldMode = FGgetmode
FGsetmode NewMode
IF NewMode = 4 THEN
FGpalette 0, 0
FOR ColorIndex = 0 TO 15
READ CGApattern
FGpattern ColorIndex, CGApattern
NEXT
ELSEIF NewMode = 9 OR NewMode = 13 THEN
FGpattern 15, &h04F7
ELSE
FGsetrgb 15, 38, 38, 38
END IF
FGmove 0, 199
FGdispfile "coral.ppr"+CHR$(0), 320, 1
FGwaitkey
FGsetmode OldMode
FGreset
END